ÄúµÄλÖãºÑ°ÃÎÍøÊ×Ò³£¾±à³ÌÀÖÔ°£¾VBScript£¾VBScript


objects constants operators statements functions properties methods







METHOD:  FileSystemObject.BuildPath

[newfullpath = ]object.BuildPath(path, name)

This method is used to append a name onto an existing path. The format of the new path is 'existingpath\name'.

Code:
<%
dim filesys, newfullpath
set filesys=CreateObject("Scripting.FileSystemObject")
newfullpath = filesys.BuildPath(c:\inetpub\wwwroot, "images")
%>

Output:
"c:\inetpub\wwwroot\images"